import { post } from "@/utils/http";

//添加虚拟电话号码
export function addvirtualphoneAPI(data) {
  return post('phone/phone-client/api/virtualphone/insert', data);
}

//删除虚拟电话号码
export function deletevirtualphoneAPI(id) {
  return post('phone/phone-client/api/virtualphone/delete/' + id);
}

//修改虚拟电话号码
export function updatevirtualphoneAPI(data) {
  return post('phone/phone-client/api/virtualphone/update', data);
}

// 获取虚拟电话号码信息分页列表（通过路径参数传递页码）
export function getvirtualphonePageAPI(page) {
  return post(`phone/phone-client/api/virtualphone/pagelist/${page}`);
}

//模糊查询虚拟电话号码信息列表
export function searchvirtualphoneAPI(keyword) {
  return post(`phone/phone-client/api/virtualphone/search/${keyword}`);
}
